<template>
    点击次数为{{ count }}, 当前次数为 {{oddOrEven}}

</template>

<script lang="ts" setup>

import { computed } from 'vue';
    const props = defineProps({
        count:Number
    })

    const oddOrEven = computed(()=>{
        return props.count % 2 == 1 ?'奇数' :'偶数'
    })
</script>

<style>
</style>